home *** CD-ROM | disk | FTP | other *** search
- ##############################
- ## the base head is just a sphere
- ## I didn't change the name to reflect the fact that I just grabbed
- ## this from Examples/WavesWorld/canonicalRIB
- #
- set sphere(surface) plastic
- set sphere(color) {1.0 0.0 0.0}
- set sphere(radius) 1.0
- EveCmd {set sphere(zMin) -$sphere(radius)}
- EveCmd {set sphere(zMax) $sphere(radius)}
- set sphere(thetaMax) 360.0
- set sphere(volumePreservingScaleFactor) 1.0
- EveCmd {set sphere(xScale) [expr 1./sqrt($sphere(volumePreservingScaleFactor))]}
- EveCmd {set sphere(yScale) $sphere(volumePreservingScaleFactor)}
- EveCmd {set sphere(zScale) [expr 1./sqrt($sphere(volumePreservingScaleFactor))]}
- set sphere(xTranslate) 0
- set sphere(yTranslate) 0
- set sphere(zTranslate) 0
- set sphere(xRotate) 0
- set sphere(yRotate) 0
- set sphere(zRotate) 0
-
- #########################
- ## there are two eyes...
- ## eyes() is stuff that stays the same for both
- ## while eye() stuff is specialized for left and right
- #
- set eyes(xRotate) 0
- set eyes(xTranslate) 0
- EveCmd {set eyes(yTranslate) [expr {$sphere(radius) * .5}]}
- EveCmd {set eyes(zTranslate) [expr {$sphere(radius) * .5}]}
- set eyes(protrusion) .95
- set eyes(color) {1 1 1}
- set eyes(xRotate) 0
- set eyes(yRotate) 15
- set eyes(surface) metal
-
- set eye(volumePreservingScaleFactor) 1.5
- EveCmd {set eye(xScale) [expr 1./sqrt($eye(volumePreservingScaleFactor))]}
- EveCmd {set eye(yScale) $eye(volumePreservingScaleFactor)}
- EveCmd {set eye(zScale) [expr 1./sqrt($eye(volumePreservingScaleFactor))]}
- set eye(color) {1.0 1.0 1.0}
- set eye(percentageOfHead) .2
- EveCmd {set eye(radius) [expr {$eye(percentageOfHead) * $sphere(radius)}]}
- EveCmd {set eye(zMin) -$eye(radius)}
- EveCmd {set eye(zMax) $eye(radius)}
- set eye(thetaMax) 360.0
-
-
- set eye(xRotate) 0
- set eye(yRotate) 0
-
- ##########################
- ## there are two pupils...
- #
- EveCmd {set pupil(radius) [expr {$eye(radius)*.5}]}
- set pupil(scale) 1.0
- set pupil(color) {0 0 0}
-
- ##########################
- # there are two eyeLids...
- #
- set eyeLid(sizeFactor) 1.05
- set eyeLid(scaleFactor) 1.3
- set eyeLid(upperTheta) 0
- set eyeLid(lowerTheta) 0
- EveCmd {set eyeLid(xScale) $eye(xScale)}
- EveCmd {set eyeLid(yScale) $eye(yScale)}
- EveCmd {set eyeLid(zScale) [expr {$eye(zScale) * $eyeLid(scaleFactor)}]}
- EveCmd {set eyeLid(color) $sphere(color)}
- EveCmd {set eyeLid(surface) $sphere(surface)}
-
-
- set averyFactor 1.0
-
- set squintTime 1.0